package DMSXL._2023Before.Array;



public class Test {
    public static void main(String[] args) {
        int n = 189;
        String s = Integer.toString(n);
        for (int i = 0; i < s.length(); i++) {

            int num = Character.getNumericValue(s.charAt(i));
            System.out.println(num * num);
            System.out.println(s.charAt(i));
        }
    }
}

